package com.kaka.bus.engine.user.register;

import com.kaka.bus.bean.HttpWrapper;
import com.kaka.bus.mvp.BasePresenter;
import com.kaka.bus.mvp.BaseView;

/**
 * Created by zhangqi on 2016/9/28.
 * e-mail : ${email}
 * desc :
 */

public interface RegistContract {

    interface View extends BaseView{
        /**
         * 是否同意协议
         * @return
         */
        boolean isCheck();
        void phoneIsExist();
        void phoneState(HttpWrapper<String> wrapper);
        void time();

        void sendSmsSuccess(HttpWrapper<String> bean);
        void checkInviteResult(HttpWrapper<String> bean);

    }

    interface Presenter extends BasePresenter<View>{
        /**
         * 返回true 则发送验证码
         * @param phone
         * @return
         */
        boolean sendyzm(String phone,String tokenKey);

        void isExist(String phone);
        void checkInvite(String phone,String invite);

    }
}
